/** Copyright (c) 2015—2017 Zerone.Co.Ltd. All rights reserved. */
package com.zerone.pay.merchant.repository.service.impl;

import com.acooly.core.common.service.EntityServiceImpl;
import com.zerone.pay.merchant.repository.dao.MerchantDao;
import com.zerone.pay.merchant.repository.entity.MerchantEntity;
import com.zerone.pay.merchant.repository.service.MerchantRepositoryService;
import org.springframework.stereotype.Service;

/** @author glassescat <a href="">零一零一科技</a> */
@Service
public class MerchantRepositoryServiceImpl extends EntityServiceImpl<MerchantEntity, MerchantDao>
    implements MerchantRepositoryService {

    @Override
    public MerchantEntity findByMerchantId(String merchantId) {
        return getEntityDao().findByMerchantId(merchantId);
    }

    @Override
    public MerchantEntity findByEmailOrMobile(String email, String mobile) {
        return getEntityDao().findByEmailOrMobile(email,mobile);
    }
}
